package com.ling.pl.autoproject.definition.component.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

/**
 * gutter	栅格间隔	number	0
 * type	布局模式，可选 flex，现代浏览器 下有效	string
 * align	flex 布局下的垂直对齐方式：top middle bottom	string	top
 * justify	flex 布局下的水平排列方式：start end center space-around space-between	string	start
 */
public class RowLayout {
    @Column(name = "GUTTER")
    @ModelProperty(comment = "栅格间隔")
    Integer gutter;

    @Column(name = "TYPE", length = 150)
    @ModelProperty(comment = "布局模式")
    @Dict(code = "builder.component.rowLayoutType", des = "flex")
    String type;

    @Column(name = "ALIGN", length = 150)
    @ModelProperty(comment = "布局下的垂直对齐方式")
    @Dict(code = "builder.component.align", des = "top middle bottom")
    String align;

    @Column(name = "JUSTIFY", length = 150)
    @ModelProperty(comment = "布局下的水平排列方式")
    @Dict(code = "builder.component.justify", des = "start end center space-around space-between")
    String justify;
}
